function login(f)
{
	if(f.username.value == '')
	{
		alert("请填写用户名");
		f.username.focus();
		return false;
	}
	else if(f.password.value == '')
	{
		alert("请填写密码");
		f.password.focus();
		return false;
	}

	$.ajax({type:"POST", url:"/member/login.html", data:$('#login_form').formSerialize(), dataType:"json", success:function (data){
		if(data.statusCode == 200)
		{
			window.location.href=data.forwardUrl;
		}
		else if(data.statusCode = 300)
		{
			alert(data.message);
			window.location.href='/member/login.html';
		}
		else
		{
			alert("操作出错");
		}
	}});

	return false;
}